package com.nattakute.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nattakute.dao.StatusDAO;
import com.nattakute.model.Status;
import com.nattakute.service.StatusService;

@Service("statusService")
@Transactional
public class StatusServicesImpl implements StatusService{

	@Autowired
	private StatusDAO statusDAO;
	
	
	@Transactional
	public List<Status> getStatus() {
		// TODO Auto-generated method stub
		return statusDAO.getStatus();
	}

	
	@Transactional
	public Status getStatusById(Integer id) {
		// TODO Auto-generated method stub
		return statusDAO.getStatusById(id);
	}

	
	@Transactional
	public Boolean addStatus(Status status) {
		// TODO Auto-generated method stub
		return statusDAO.addStatus(status);
	}

	
	@Transactional
	public Boolean deleteStatus(Status status) {
		// TODO Auto-generated method stub
		return statusDAO.deleteStatus(status);
	}

	
	@Transactional
	public Boolean updateStatus(Status status) {
		return statusDAO.updateStatus(status);
	}


	public void setStatusDAO(StatusDAO statusDAO) {
		this.statusDAO = statusDAO;
	}

	
}
